<?php
namespace app\index\model;
use think\Session;
use think\Model;
use think\Request;
/**
 * 营地
 */
class Camps extends model
{   
    use \app\common\traits\model\TraitModel;
    protected $table = 'camps';
    protected $autoWriteTimestamp = 'timestamp';
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';
    /**
     * [getUserList 营地列表]
     * @param  [type] $querys [description]
     * @return [type]         [description]
     */
    public function getCampList($querys=[])
    {
        return $this->getInfoList($querys);
    }

    public function caravan()
    {
        return $this->hasMany('CaravanInfos','id');
    }
    public function test1()
    {
        return $this->hasMany('Filters','camp_id');
    }

}
